import axios from 'axios'
// 获取部门信息公共方法
export const dePartment = () => {
   return axios.request({
     url: 'http://192.168.1.136:8000/crp/Department/',
     method: 'get'
   })
 }
// 获取岗位信息公共方法
 export const getjob = () => {
   return axios.request({
     url: 'http://192.168.1.136:8000/crp/Job/',
     method: 'get'
   })
 }
 // 获取员工信息公共方法
 export const getstaff = () => {
   return axios.request({
     url: 'http://192.168.1.136:8000/crp/Staff/',
     method: 'get'
   })
 }
 export const getcrfnotgather = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=crflockstat50',
    method: 'get'
  })
}
export const getmorequerycollect = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=Questionnumberagain',
    method: 'get'
  })
}
 export const login = (data) => {
  return axios.request({
    url: '',
    data,
    method: 'post'
  })
}
// 访视状态总览
export const getvisitdata = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=visitdata',
    method: 'get'
  })
}
// 访视超窗列表
export const getsuperwindow = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=sfzqb',
    method: 'get'
  })
}
export const getvisitwt = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=visitwt',
    method: 'get'
  })
}
export const getvisitnotwt = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=visitnotwt',
    method: 'get'
  })
}
export const getvisitsdv = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=visitsdv',
    method: 'get'
  })
}
export const getcrflockstat00 = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=crflockstat00',
    method: 'get'
  })
}
export const getcrfnotsdv = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=crfnotsdv',
    method: 'get'
  })
}
export const getqueryanswered = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=queryanswered',
    method: 'get'
  })
}
export const getzyb = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=zyb',
    method: 'get'
  })
}
export const getzybzthz = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=zyb_zthz',
    method: 'get'
  })
}
export const getpd = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/edcselect/?table_name=zyb_pdhz',
    method: 'get'
  })
}
export const getzyzt = () => {
  return axios.request({
    url: 'http://120.92.112.108:8080/edcreports/zyzt/',
    method: 'get'
  })
}





